<html> 

<head>
<title>{% block title %}Notes.Django App{% endblock %}</title>
<link rel="stylesheet" href="/ajaxmedia/style.css">
<script type="text/javascript" src="/ajaxmedia/jquery-1.2.6.min.js"></script>
</head>

<body>

<script>

   function update(){
      $.getJSON("/getjson/", 
                function(data){
                   $("#dyn-time").replaceWith('<div id="dyn-time">' + data.time + "</div>")
                })
   }

   $(document).ready(function() {
      setInterval("update()", 1000)
   })
</script>

<div class="container">
{% block content %}{% endblock %}
</div>

<div id="dyn-time"></div>

</body>

</html>
